		Instructor Home Page </br>

		<?php
			$output = strtok(implode(",", $info[0]), ",");
			$length= strlen($output);
			for($i=0;$i<12;$i++)
			{
				$det[$i] = $output;
				$output = strtok(substr(implode(",", $info[0]), $length), ",");
				$length=$length + strlen($output);
			}
			echo 'Name: ', $det[0], '<br />';
			echo 'Employee number: ', $det[3], '<br />';
			echo "Mobile Number: ", $det[5], '<br />';
			echo "Designation: ", $det[7], '<br />';
			echo "Rank:	", $det[9], '<br />';
			echo "Faculty Room: ", $det[11], '<br />';
		?>
		
		<?php echo form_open('instructor/search_student'); ?>
			<table border = "1">
				<tr>
					<td>
						<?php echo form_label('Search student: ', 'student')?>
					</td>
				</tr>
				<tr>
					<td>
						<?php
							$data = array(
								'name' => 'student',
								'value' => set_value('student')
							);
							echo form_input($data);
						?>
					</td>
					</td>
				<tr>
					<td>
						<?php
							echo '<br />';
							echo 'Search by: ';
							$search_by = array(
								'name' => 'Name',						
								'student_number' => 'Student Number'
							);
							echo form_dropdown('search', $search_by);
						?>
					</td>
				</tr>
				</tr>
				<tr>
					<td>
						<?php
							$data = array(
								'value' => 'Search'
							);
							echo form_submit($data);
						?>
					</td>
				</tr>
			</table>
			<?php echo form_error('student'); ?>
		<?php echo form_close(); ?>
		
		<?php echo form_open('instructor/view_qualified_students'); ?>
			<table border = "1">
				<tr>
					<?php echo form_label('View list of students qualified for subject', 'prereq'); ?>
				</tr>
				<tr>
					<td>
						<?php echo "Course: " ?>
					</td>
				</tr>
				<tr>
					<td>
						<?php 
							$data = array(
								'name' => 'course',
								'value' => set_value('name')
							);
							echo form_input($data)
						?>
					</td>
				<tr>
				<tr>
					<td>
						<?php 
							$data = array(
								'value' => 'Populate'
							);
							echo form_submit($data) 
						?>
					</td>
				</tr>
			</table>
			<?php echo form_error('course') ?>
		<?php echo form_close(); ?>
		
		<?php echo anchor('instructor/view_students_associated', 'View students associated with you').'<br />' ?>

		<?php echo anchor('login/process','Logout');?>
